package io.renren.modules.sys.service.impl;

import io.renren.modules.sys.entity.SongEntity;
import io.renren.modules.sys.entity.SongRecommendEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.sys.dao.SongNewDao;
import io.renren.modules.sys.entity.SongNewEntity;
import io.renren.modules.sys.service.SongNewService;



@Service("songNewService")
public class SongNewServiceImpl implements SongNewService {
	@Autowired
	private SongNewDao songNewDao;
	
	@Override
	public SongNewEntity queryObject(Long id){
		return songNewDao.queryObject(id);
	}
	
	@Override
	public List<SongEntity> queryList(Map<String, Object> map){
		return songNewDao.querySongList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return songNewDao.queryTotal(map);
	}
	
	@Override
	public void save(SongNewEntity songNew){
		songNewDao.save(songNew);
	}
	
	@Override
	public void update(SongNewEntity songNew){
		songNewDao.update(songNew);
	}
	
	@Override
	public void delete(Long id){
		songNewDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		songNewDao.deleteBatch(ids);
	}

    @Override
    public List<SongEntity> queryListAll(Map<String, Object> params) {
        return songNewDao.queryListAll(params);
    }

    @Override
    public void deleteAll() {
        songNewDao.deleteAll();
    }

    @Override
    public void insertBatch(List<SongNewEntity> sList) {
        songNewDao.insertBatch(sList);
    }
}
